package uk.ac.lkl.common.associator.ui;



/**
 * Delegate for drawing link.
 * 
 * @author Darren Pearce
 * @version $Revision: 357 $
 * @version $Date: 2007-10-30 16:13:54 +0000 (Tue, 30 Oct 2007) $
 * 
 */
public class HandlePanelLink {

    private HandlePanel leftHandlePanel;

    private HandlePanel rightHandlePanel;


    public HandlePanelLink(HandlePanel leftHandlePanel,
            HandlePanel rightHandlePanel) {
        this.leftHandlePanel = leftHandlePanel;
        this.rightHandlePanel = rightHandlePanel;
    }


    public HandlePanel getLeftHandlePanel() {
        return leftHandlePanel;
    }


    public HandlePanel getRightHandlePanel() {
        return rightHandlePanel;
    }

    
    public boolean equals(Object object) {
        if (!(object instanceof HandlePanelLink))
            return false;

        HandlePanelLink other = (HandlePanelLink) object;

        return this.leftHandlePanel == other.leftHandlePanel
                && this.rightHandlePanel == other.rightHandlePanel;
    }

}
